package igloo.model;

import java.util.Date;

public class Job
{
    private String mId;
    private Date mCreationDate;
    private String mDescription;
    private String mType;
    private State mState;
    private Vault mVault;

    public String getId()
    {
        return mId;
    }

    public void setId(String id)
    {
        mId = id;
    }

    public Date getCreationDate()
    {
        return mCreationDate;
    }

    public void setCreationDate(Date creationDate)
    {
        mCreationDate = creationDate;
    }

    public String getDescription()
    {
        return mDescription;
    }

    public void setDescription(String description)
    {
        mDescription = description;
    }

    public String getType()
    {
        return mType;
    }

    public void setType(String type)
    {
        mType = type;
    }

    public Vault getVault()
    {
        return mVault;
    }

    public void setVault(Vault vault)
    {
        mVault = vault;
    }

    public State getState()
    {
        return mState;
    }

    public void setState(State state)
    {
        mState = state;
    }

    public boolean isComplete()
    {
        return mState != State.InProgress;
    }

    public enum State
    {
        InProgress,
        Succeeded,
        Failed
    }
}